]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Use template strings over concatenation
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Aug 2019 19:12:21 +0000 (21:12 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 11 Sep 2019 20:59:31 +0000 (20:59 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

js/ui/calendar.js

index 4de3965acfe4799ecda1b2b6100d725ae00e023c..1f9802f4b13f23cec34fd58c5f3aa3f4a5161d26 100644 (file)
@@ -688,15 +688,15 @@ var EventMessage = class EventMessage extends MessageList.Message {
         let rtl = Clutter.get_default_text_direction() == Clutter.TextDirection.RTL;
         if (this._event.date < periodBegin && !this._event.allDay) {
             if (rtl)
-                title = title + ELLIPSIS_CHAR;
+                title = `${title}${ELLIPSIS_CHAR}`;
             else
-                title = ELLIPSIS_CHAR + title;
+                title = `${ELLIPSIS_CHAR}${title}`;
         }
         if (this._event.end > periodEnd && !this._event.allDay) {
             if (rtl)
-                title = ELLIPSIS_CHAR + title;
+                title = `${ELLIPSIS_CHAR}${title}`;
             else
-                title = title + ELLIPSIS_CHAR;
+                title = `${title}${ELLIPSIS_CHAR}`;
         }
         return title;
     }